package
{
	import away3d.tools.utils.Ray;
	
	import flash.display.Sprite;
	import flash.geom.Vector3D;
	
	public class rayTest extends Sprite {
		public function rayTest() {
			super();
			
			var v: Array = [new Vector3D(), new Vector3D(201, 0, 200)];
			var f: Array = [new Vector3D(100, 100, 100), new Vector3D(100, -100, 100), new Vector3D(-100, -100, 100)]
			
			var ray: Ray = new Ray();
			var result: Vector3D = ray.getRayToTriangleIntersection(v[0], v[1], f[0], f[1], f[2]);
			trace(result);
		}
	}
}